//
//  ConProtocolViewController.m
//  Shengzhuli
//
//  Created by subook on 17/3/24.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "ConProtocolViewController.h"
#import "GFXNetworkHandle.h"
#import "SZLAccountHelper.h"

@interface ConProtocolViewController ()

@property (nonatomic, strong)UIWebView *webView;
@end

@implementation ConProtocolViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"用户协议";
    [self createWebView];
}

- (void)createWebView {
    
    _webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, ScreenW, ScreenH-64)];
    NSString *urlString = [PublicServer stringByAppendingString:@"/member/agreement/view"];
    _webView.backgroundColor = [UIColor whiteColor];
    NSURL *url = [NSURL URLWithString:urlString];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    
    [self.view addSubview:_webView];
    [_webView loadRequest:request];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
